#ifndef KITROBOT1_H
#define KITROBOT1_H

#include <QtGui/QMainWindow>
#include "ui_kitrobot1.h"
#include <QSize>
#include <qfocusframe.h>
#include <qcompleter.h>

// this code has my testing code as well.
// will chnage it while integrating. Also I havent done the kit enlargement stuff yet

class coordinates
{
	public:
		QPoint p;
		qreal Angle;
};

class KitRobot1 : public QMainWindow
{
	Q_OBJECT

public:
	KitRobot1(QWidget *parent = 0, Qt::WFlags flags = 0);
	~KitRobot1();
	int counter;
	QSize sizeHint() const;
	enum GUIKitRobotState { GoingtoPosition, PickUpKit, DropOffKit, DoNothing };
	GUIKitRobotState state;
	QPoint position;
	void DoGoToNeutralPosition();
	void DoGoToDestination(QPoint destination);
	void DoPickUpKit();
	void DoDropOffKit(QPoint destination);

protected:
		void paintEvent(QPaintEvent *event);
		void keyPressEvent(QKeyEvent *e);
		void focusInEvent(QFocusEvent *e);
private:
		qreal angle;
		bool flag;
		int scale_x, scale_y;
		QRect rectang;
		qreal degree;

		coordinates rectangle, arm1, arm2;
	    Ui::KitRobot1Class ui;
		//Kit *kit;
};


#endif // KITROBOT1_H
